﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace WPFGeebaClient
{
    /// <summary>
    /// Interaction logic for AddNewSubforum.xaml
    /// </summary>
    public partial class AddNewSubforum : Window
    {
        ServerAdapter.SAdapter server;
        private ListBox subforumsList;

        public AddNewSubforum(ServerAdapter.SAdapter p_server)
        {
            InitializeComponent();
            server = p_server;
        }

        public AddNewSubforum(ServerAdapter.SAdapter server, ListBox subforumsList)
        {
            InitializeComponent();
            this.server = server;
            this.subforumsList = subforumsList;
        }

        //private void saveBtn_Click(object sender, RoutedEventArgs e)
        //{
        //    server.serverAddSubForum(this. subjectText.Text, moderatorTxt.Text);
        //    subforumsList.Items.Add(new SubfourmControl(subjectText.Text, "0"));
        //    this.Close();
        //}
    }
}
